package com.org.redis.config;

import redis.clients.jedis.Jedis;

public class JedisUtils {

    public static Jedis getJedis() {
        return RedisPoolConnection.getJedis();
    }

    public static Jedis getWriteJedis() {
        return RedisPoolConnection.getWriteJedis();
    }

    public static Jedis getReadJedis() {
        return RedisPoolConnection.getReadJedis();
    }

    public static void returnResource(final Jedis jedis) {
        RedisPoolConnection.returnResource(jedis);
    }

    public static void closePool() {
        RedisPoolConnection.cloesPool();
    }

}
